﻿using System;
using Sapit.Attributes.Interfaces;

namespace Sapit.Windsor.Attributes
{
    /// <summary>
    /// Apply this attribute to methods that should be cached.
    /// </summary>
    [AttributeUsage(AttributeTargets.Method)]
    public class CacheAttribute : Attribute, ICache
    {
        /// <summary>
        /// Number of seconds to cache the result of the method
        /// </summary>
        public int CacheSeconds { get; set; }
    }
}
